export const useEventListener = keyupSubmit => {
  onShow(() => {
    if (verifyPc()) {
      window.addEventListener("keydown", keyupSubmit, false);
    }
  });
  onHide(() => {
    window.removeEventListener("keydown", keyupSubmit, false);
  });
  onBeforeUnmount(() => {
    window.removeEventListener("keydown", keyupSubmit, false);
  });
};
